<div class="app-content-body ">
    <div class="bg-light lter b-b wrapper-md hidden-print">
      <h1 class="m-n font-thin h3">积分详情</h1>
    </div>

    <div class="form_title">
      <div class="my_hd edit-type">查看</div>
      <div class="crud-container crud-reset">
        <form id="form-container">
          <div class="row">
            <div class="col-sm-12">
              <div id="form"></div>
            </div>
          </div>          
          <div class="row">
            <div class="col-sm-12 text-right" style="margin-top: 15px;">
                <div id="cancel"></div>
            </div>
          </div>
        </form>
      </div>
    </div>
</div>
<script type="text/javascript">
$(function (){
    $("#content").one("route.loaded", function(e, context) {
      	var id=context.params.id ,
      	  	memberStore = API('user/'+id+'/point');

		$("#form").dxDataGrid({
	        dataSource: memberStore,
	        columns: [{
		        dataField: "format_reason",
		        caption: '内容'
		    },{
		        dataField: "updated_at",
		        caption: '时间'
		    },{
		        dataField: "point",
		        caption: '分值'
		    }]
	    });
		
		
      $("#cancel").dxButton({
          text: "返回",
          type: "normal",
          onClick:function() {
            context.redirect("#/vip-integral");
          }
      });
    });
});
</script>